Optimal. Leaf size=117 \[ -\frac {A \sqrt {a+b x^2}}{7 a x^7}+\frac {(6 A b-7 a B) \sqrt {a+b x^2}}{35 a^2 x^5}-\frac {4 b (6 A b-7 a B) \sqrt {a+b x^2}}{105 a^3 x^3}+\frac {8 b^2 (6 A b-7 a B) \sqrt {a+b x^2}}{105 a^4 x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 117, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {464, 277, 270}
\begin {gather*} \frac {8 b^2 \sqrt {a+b x^2} (6 A b-7 a B)}{105 a^4 x}-\frac {4 b \sqrt {a+b x^2} (6 A b-7 a B)}{105 a^3 x^3}+\frac {\sqrt {a+b x^2} (6 A b-7 a B)}{35 a^2 x^5}-\frac {A \sqrt {a+b x^2}}{7 a x^7} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 270
Rule 277
Rule 464
Rubi steps
\begin {align*} \int \frac {A+B x^2}{x^8 \sqrt {a+b x^2}} \, dx &=-\frac {A \sqrt {a+b x^2}}{7 a x^7}-\frac {(6 A b-7 a B) \int \frac {1}{x^6 \sqrt {a+b x^2}} \, dx}{7 a}\\ &=-\frac {A \sqrt {a+b x^2}}{7 a x^7}+\frac {(6 A b-7 a B) \sqrt {a+b x^2}}{35 a^2 x^5}+\frac {(4 b (6 A b-7 a B)) \int \frac {1}{x^4 \sqrt {a+b x^2}} \, dx}{35 a^2}\\ &=-\frac {A \sqrt {a+b x^2}}{7 a x^7}+\frac {(6 A b-7 a B) \sqrt {a+b x^2}}{35 a^2 x^5}-\frac {4 b (6 A b-7 a B) \sqrt {a+b x^2}}{105 a^3 x^3}-\frac {\left (8 b^2 (6 A b-7 a B)\right ) \int \frac {1}{x^2 \sqrt {a+b x^2}} \, dx}{105 a^3}\\ &=-\frac {A \sqrt {a+b x^2}}{7 a x^7}+\frac {(6 A b-7 a B) \sqrt {a+b x^2}}{35 a^2 x^5}-\frac {4 b (6 A b-7 a B) \sqrt {a+b x^2}}{105 a^3 x^3}+\frac {8 b^2 (6 A b-7 a B) \sqrt {a+b x^2}}{105 a^4 x}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 86, normalized size = 0.74 \begin {gather*} \frac {\sqrt {a+b x^2} \left (-15 a^3 A+18 a^2 A b x^2-21 a^3 B x^2-24 a A b^2 x^4+28 a^2 b B x^4+48 A b^3 x^6-56 a b^2 B x^6\right )}{105 a^4 x^7} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 150, normalized size = 1.28
method | result | size |
gosper | \(-\frac {\sqrt {b \,x^{2}+a}\, \left (-48 x^{6} A \,b^{3}+56 x^{6} B a \,b^{2}+24 A a \,b^{2} x^{4}-28 x^{4} B \,a^{2} b -18 x^{2} A \,a^{2} b +21 B \,a^{3} x^{2}+15 A \,a^{3}\right )}{105 x^{7} a^{4}}\) | \(83\) |
trager | \(-\frac {\sqrt {b \,x^{2}+a}\, \left (-48 x^{6} A \,b^{3}+56 x^{6} B a \,b^{2}+24 A a \,b^{2} x^{4}-28 x^{4} B \,a^{2} b -18 x^{2} A \,a^{2} b +21 B \,a^{3} x^{2}+15 A \,a^{3}\right )}{105 x^{7} a^{4}}\) | \(83\) |
risch | \(-\frac {\sqrt {b \,x^{2}+a}\, \left (-48 x^{6} A \,b^{3}+56 x^{6} B a \,b^{2}+24 A a \,b^{2} x^{4}-28 x^{4} B \,a^{2} b -18 x^{2} A \,a^{2} b +21 B \,a^{3} x^{2}+15 A \,a^{3}\right )}{105 x^{7} a^{4}}\) | \(83\) |
default | \(B \left (-\frac {\sqrt {b \,x^{2}+a}}{5 a \,x^{5}}-\frac {4 b \left (-\frac {\sqrt {b \,x^{2}+a}}{3 a \,x^{3}}+\frac {2 b \sqrt {b \,x^{2}+a}}{3 a^{2} x}\right )}{5 a}\right )+A \left (-\frac {\sqrt {b \,x^{2}+a}}{7 a \,x^{7}}-\frac {6 b \left (-\frac {\sqrt {b \,x^{2}+a}}{5 a \,x^{5}}-\frac {4 b \left (-\frac {\sqrt {b \,x^{2}+a}}{3 a \,x^{3}}+\frac {2 b \sqrt {b \,x^{2}+a}}{3 a^{2} x}\right )}{5 a}\right )}{7 a}\right )\) | \(150\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 138, normalized size = 1.18 \begin {gather*} -\frac {8 \, \sqrt {b x^{2} + a} B b^{2}}{15 \, a^{3} x} + \frac {16 \, \sqrt {b x^{2} + a} A b^{3}}{35 \, a^{4} x} + \frac {4 \, \sqrt {b x^{2} + a} B b}{15 \, a^{2} x^{3}} - \frac {8 \, \sqrt {b x^{2} + a} A b^{2}}{35 \, a^{3} x^{3}} - \frac {\sqrt {b x^{2} + a} B}{5 \, a x^{5}} + \frac {6 \, \sqrt {b x^{2} + a} A b}{35 \, a^{2} x^{5}} - \frac {\sqrt {b x^{2} + a} A}{7 \, a x^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.20, size = 82, normalized size = 0.70 \begin {gather*} -\frac {{\left (8 \, {\left (7 \, B a b^{2} - 6 \, A b^{3}\right )} x^{6} - 4 \, {\left (7 \, B a^{2} b - 6 \, A a b^{2}\right )} x^{4} + 15 \, A a^{3} + 3 \, {\left (7 \, B a^{3} - 6 \, A a^{2} b\right )} x^{2}\right )} \sqrt {b x^{2} + a}}{105 \, a^{4} x^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 819 vs.
\(2 (110) = 220\).
time = 1.66, size = 819, normalized size = 7.00 \begin {gather*} - \frac {5 A a^{6} b^{\frac {19}{2}} \sqrt {\frac {a}{b x^{2}} + 1}}{35 a^{7} b^{9} x^{6} + 105 a^{6} b^{10} x^{8} + 105 a^{5} b^{11} x^{10} + 35 a^{4} b^{12} x^{12}} - \frac {9 A a^{5} b^{\frac {21}{2}} x^{2} \sqrt {\frac {a}{b x^{2}} + 1}}{35 a^{7} b^{9} x^{6} + 105 a^{6} b^{10} x^{8} + 105 a^{5} b^{11} x^{10} + 35 a^{4} b^{12} x^{12}} - \frac {5 A a^{4} b^{\frac {23}{2}} x^{4} \sqrt {\frac {a}{b x^{2}} + 1}}{35 a^{7} b^{9} x^{6} + 105 a^{6} b^{10} x^{8} + 105 a^{5} b^{11} x^{10} + 35 a^{4} b^{12} x^{12}} + \frac {5 A a^{3} b^{\frac {25}{2}} x^{6} \sqrt {\frac {a}{b x^{2}} + 1}}{35 a^{7} b^{9} x^{6} + 105 a^{6} b^{10} x^{8} + 105 a^{5} b^{11} x^{10} + 35 a^{4} b^{12} x^{12}} + \frac {30 A a^{2} b^{\frac {27}{2}} x^{8} \sqrt {\frac {a}{b x^{2}} + 1}}{35 a^{7} b^{9} x^{6} + 105 a^{6} b^{10} x^{8} + 105 a^{5} b^{11} x^{10} + 35 a^{4} b^{12} x^{12}} + \frac {40 A a b^{\frac {29}{2}} x^{10} \sqrt {\frac {a}{b x^{2}} + 1}}{35 a^{7} b^{9} x^{6} + 105 a^{6} b^{10} x^{8} + 105 a^{5} b^{11} x^{10} + 35 a^{4} b^{12} x^{12}} + \frac {16 A b^{\frac {31}{2}} x^{12} \sqrt {\frac {a}{b x^{2}} + 1}}{35 a^{7} b^{9} x^{6} + 105 a^{6} b^{10} x^{8} + 105 a^{5} b^{11} x^{10} + 35 a^{4} b^{12} x^{12}} - \frac {3 B a^{4} b^{\frac {9}{2}} \sqrt {\frac {a}{b x^{2}} + 1}}{15 a^{5} b^{4} x^{4} + 30 a^{4} b^{5} x^{6} + 15 a^{3} b^{6} x^{8}} - \frac {2 B a^{3} b^{\frac {11}{2}} x^{2} \sqrt {\frac {a}{b x^{2}} + 1}}{15 a^{5} b^{4} x^{4} + 30 a^{4} b^{5} x^{6} + 15 a^{3} b^{6} x^{8}} - \frac {3 B a^{2} b^{\frac {13}{2}} x^{4} \sqrt {\frac {a}{b x^{2}} + 1}}{15 a^{5} b^{4} x^{4} + 30 a^{4} b^{5} x^{6} + 15 a^{3} b^{6} x^{8}} - \frac {12 B a b^{\frac {15}{2}} x^{6} \sqrt {\frac {a}{b x^{2}} + 1}}{15 a^{5} b^{4} x^{4} + 30 a^{4} b^{5} x^{6} + 15 a^{3} b^{6} x^{8}} - \frac {8 B b^{\frac {17}{2}} x^{8} \sqrt {\frac {a}{b x^{2}} + 1}}{15 a^{5} b^{4} x^{4} + 30 a^{4} b^{5} x^{6} + 15 a^{3} b^{6} x^{8}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 232 vs.
\(2 (101) = 202\).
time = 1.17, size = 232, normalized size = 1.98 \begin {gather*} \frac {16 \, {\left (70 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{8} B b^{\frac {5}{2}} - 175 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{6} B a b^{\frac {5}{2}} + 210 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{6} A b^{\frac {7}{2}} + 147 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{4} B a^{2} b^{\frac {5}{2}} - 126 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{4} A a b^{\frac {7}{2}} - 49 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} B a^{3} b^{\frac {5}{2}} + 42 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} A a^{2} b^{\frac {7}{2}} + 7 \, B a^{4} b^{\frac {5}{2}} - 6 \, A a^{3} b^{\frac {7}{2}}\right )}}{105 \, {\left ({\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} - a\right )}^{7}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.36, size = 105, normalized size = 0.90 \begin {gather*} \frac {\sqrt {b\,x^2+a}\,\left (6\,A\,b-7\,B\,a\right )}{35\,a^2\,x^5}+\frac {\sqrt {b\,x^2+a}\,\left (48\,A\,b^3-56\,B\,a\,b^2\right )}{105\,a^4\,x}-\frac {\left (24\,A\,b^2-28\,B\,a\,b\right )\,\sqrt {b\,x^2+a}}{105\,a^3\,x^3}-\frac {A\,\sqrt {b\,x^2+a}}{7\,a\,x^7} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________